import 'package:flutter/material.dart';
import 'package:ui_templates/app_theme.dart';

class InviteFriendsPage extends StatefulWidget {
  const InviteFriendsPage({super.key});

  @override
  State<InviteFriendsPage> createState() => _InviteFriendsPageState();
}

class _InviteFriendsPageState extends State<InviteFriendsPage> {
  @override
  Widget build(BuildContext context) {
    bool isLight = MediaQuery.of(context).platformBrightness == Brightness.light
        ? true
        : false;
    return Scaffold(
      body: Padding(
        padding: EdgeInsets.symmetric(horizontal: 20),
        child: Column(
          children: [
            const SizedBox(height: 80),
            Image.asset("assets/images/inviteImage.png"),
            Padding(
              padding: const EdgeInsets.only(top: 8.0),
              child: Text(
                "Invite Your Friends",
                style: TextStyle(
                  color: isLight ? AppTheme.darkText : AppTheme.white,
                  fontWeight: FontWeight.bold,
                  fontSize: 18,
                ),
              ),
            ),
            Padding(
              padding: EdgeInsets.only(top: 12),
              child: Text(
                "Are you one of those who makes everything at the last moment",
                style: TextStyle(
                  color: isLight ? AppTheme.darkText : AppTheme.white,
                ),
                textAlign: TextAlign.center,
              ),
            ),
            Expanded(
              child: Center(
                child: Container(
                  width: 130,
                  height: 40,
                  child: ElevatedButton(
                    onPressed: () {},
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.center,
                      children: const [
                        Icon(Icons.share),
                        Text("share"),
                      ],
                    ),
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
